<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.security.interfaces.*"%>
<c:set var="ctxPath" value="${pageContext.request.contextPath}"
	scope="application" />
	<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta charset="UTF-8" />
</head> 
<body>
<div class="modal fade " id="rechargeModal" tabindex="-1" role="dialog"
	aria-labelledby="rechargeModalLabel" style="top: 150px"
	aria-hidden="true">
	<div class="modal-dialog" style="width: 28%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 class="modal-title" id="rechargeModalLabel">充值</h4>
			</div>
			
			
			<div class="modal-body">
				<form class="form-horizontal" id="rechargeModalForm"
					action="${ctxPath}/payment/merchantRecharge.do" method="post"
					target="_blank" role="form">
					<div class="form-group">
						<label for="lastname" class="col-sm-3 control-label">充值金额：</label>
						<div class="col-sm-8">
							<input type="text" maxlength="4"
								onkeyup="this.value=this.value.replace(/\D/g,'')"
								class="form-control" name="money">
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-primary" data-dismiss="modal"
					onclick="rechargeAction()">支付</button>
				<button type="button" class="btn btn-default" onclick="closeCharge();">关闭
				</button>
			</div>
		</div>
	</div>
</div>
</body>
<script type="text/javascript">
function rechargeAction() {
	Ewin.confirm({
		message : "点击确认后将会为您生成充值订单！"
	}).on(function(e) {
		if (!e) {
			return;
		} else {
			$("#rechargeModalForm").submit();
		}
	});
}
</script>
</html>

